# cd /mnt/d/wsl/nodejs/
FROM debian:13.2-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ARG NODEJS_VERSION
ENV NODEJS_VERSION=${NODEJS_VERSION}
ADD  node-v${NODEJS_VERSION}-linux-x64.tar.gz /usr/local/
ENV  NODEJS_HOME=/usr/local/node-v${NODEJS_VERSION}-linux-x64
ENV  PATH=$PATH:$NODEJS_HOME/bin
ENV TZ=Asia/Shanghai
CMD ["node","-v"]

# docker build --build-arg NODEJS_VERSION=18.20.8 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:18.20.8 .
# docker build --build-arg NODEJS_VERSION=20.19.5 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:20.19.5 .
# docker build --build-arg NODEJS_VERSION=22.21.1 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:22.21.1 .
# docker build --build-arg NODEJS_VERSION=24.11.1 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:24.11.1 .
#
# docker run registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:20.19.5
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/nodejs:20.19.5
# https://nodejs.org/zh-cn/download
# https://nodejs.org/dist/latest-v18.x/
# https://nodejs.org/dist/latest-v20.x/
# https://nodejs.org/dist/latest-v22.x/
# https://nodejs.org/dist/latest-v18.x/node-v18.20.8-linux-x64.tar.gz
# https://nodejs.org/dist/latest-v20.x/node-v20.19.5-linux-x64.tar.gz
# https://nodejs.org/dist/latest-v22.x/node-v22.21.1-linux-x64.tar.gz
# https://nodejs.org/dist/latest-v24.x/node-v24.11.1-linux-x64.tar.gz

# https://github.com/version-fox/vfox/releases/tag/v0.9.2
# https://github.com/gvcgo/version-manager/releases/tag/v0.7.5
# https://github.com/Schniz/fnm/releases/tag/v1.38.1
# https://pnpm.io/zh/installation